package com.showgood.web.controller;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.showgood.Server;

@Controller
@RequestMapping(value = "/admin")
public class AdminController {

	private Logger logger = Logger.getLogger(getClass());

	@Autowired
	private Server server;

	@RequestMapping(value = "/index.do", method = { RequestMethod.GET })
	public ModelAndView index() {
		logger.info(server);
		return new ModelAndView("admin");
	}

}
